import request from '@/utils/request'

// 查询流量卡信息列表
export function listFlowCard(query) {
  return request({
    url: '/business/flowCard/list',
    method: 'get',
    params: query
  })
}

// 查询流量卡信息详细
export function getFlowCard(flowCardId) {
  return request({
    url: '/business/flowCard/' + flowCardId,
    method: 'get'
  })
}

export function getFlowCardByGatewayInfoId(gatewayInfoId) {
  return request({
    url: '/business/flowCard/gatewayInfo/' + gatewayInfoId,
    method: 'get'
  })
}

// 新增流量卡信息
export function addFlowCard(data) {
  return request({
    url: '/business/flowCard',
    method: 'post',
    data: data
  })
}

// 修改流量卡信息
export function updateFlowCard(data) {
  return request({
    url: '/business/flowCard',
    method: 'put',
    data: data
  })
}

// 删除流量卡信息
export function delFlowCard(flowCardId) {
  return request({
    url: '/business/flowCard/' + flowCardId,
    method: 'delete'
  })
}
